package com.yanqu.road.server.cmd.activity.busyfarming;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.BusyFarmingProto;
import com.yanqu.road.server.cmd.CrossCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.logic.MessageHelper;
import com.yanqu.road.server.protocol.Protocol;
import com.yanqu.road.utils.YanQuMessageUtils;

@Cmd(code = Protocol.C_BUSY_FARMING_FRIEND_HOME_DETAIL,desc = "跨服商会果园详情")
public class CrossBusyFarmingFriendHomeDetailCmd extends CrossCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(YanQuMessage packet) throws Exception {

        BusyFarmingProto.BusyFarmingFriendHomeDetailCrossReqMsg reqMsg = BusyFarmingProto.BusyFarmingFriendHomeDetailCrossReqMsg.parseFrom(packet.getBytes());

        MessageHelper.sendPacket(reqMsg.getServerId(), 0, YanQuMessageUtils.buildMessage(Protocol.S_BUSY_FARMING_FRIEND_HOME_DETAIL_FROM_CROSS, reqMsg.toBuilder()));
    }

    @Override
    public void sendData() {

    }
}
